package com.ruoyi.ring.mapper;

import java.util.List;
import com.ruoyi.ring.domain.HealthQuestion;
import org.apache.ibatis.annotations.Param;

/**
 * 健康问卷Mapper接口
 * 
 * @author liuwp
 * @date 2025-07-29
 */
public interface HealthQuestionMapper 
{
    /**
     * 查询健康问卷
     * 
     * @param id 健康问卷主键
     * @return 健康问卷
     */
    public HealthQuestion selectHealthQuestionById(Long id);

    /**
     * 查询健康问卷列表
     * 
     * @param healthQuestion 健康问卷
     * @return 健康问卷集合
     */
    public List<HealthQuestion> selectHealthQuestionList(HealthQuestion healthQuestion);

    /**
     * 可以业务主键查询一条健康问卷
     *
     * @param healthQuestion 健康问卷
     * @return 健康问卷集合
     */
    public HealthQuestion selectOneHealthQuestion(HealthQuestion healthQuestion);

    /**
     * 新增健康问卷
     * 
     * @param healthQuestion 健康问卷
     * @return 结果
     */
    public int insertHealthQuestion(HealthQuestion healthQuestion);

    /**
     * 修改健康问卷
     * 
     * @param healthQuestion 健康问卷
     * @return 结果
     */
    public int updateHealthQuestion(HealthQuestion healthQuestion);

    /**
     * 条件修改健康问卷
     *
     * @param healthQuestion 健康问卷
     * @param healthQuestion 健康问卷条件
     * @return 结果
     */
    public int updateHealthQuestionCondition(@Param("healthQuestion") HealthQuestion healthQuestion, @Param("healthQuestionCondition") HealthQuestion healthQuestionCondition);

    /**
     * 删除健康问卷
     * 
     * @param id 健康问卷主键
     * @return 结果
     */
    public int deleteHealthQuestionById(Long id);

    /**
     * 条件删除健康问卷
     *
     * @param healthQuestion 健康问卷
     * @return 结果
     */
    public int deleteHealthQuestionByCondition(HealthQuestion healthQuestion);

    /**
     * 批量删除健康问卷
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHealthQuestionByIds(Long[] ids);
}
